cmake_minimum_required(VERSION 3.20)
set(PROJECT_NAME my_reflect)
project(${PROJECT_NAME})

set(CMAKE_CXX_STANDARD 17)

# 所有cpp
file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} FOLLOW_SYMLINKS ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp)
#message(WARNING ${SOURCES})

# 编译成静态库
add_library(${PROJECT_NAME} STATIC ${SOURCES})
target_include_directories(${PROJECT_NAME} PUBLIC ./include)

add_subdirectory(test)

